﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MesCommunicationTools.Helper
{
    public class ConfigModel
    {
        /// <summary>
        /// Tibco通讯配置参数
        /// </summary>
        public TibcoConfig MesCommunicationsConfiguration { get; set; } = new TibcoConfig();
        /// <summary>
        /// 本地资源文件路径
        /// </summary>
        public string LocalFileUrl { set; get; }
        /// <summary>
        /// 本地资源文件路径
        /// </summary>
        public string LocalFileUrlTwice { set; get; }
        /// <summary>
        /// 配置文件名称
        /// </summary>
        public string ConfigurationFileName { set; get; }

        public string MesSendSubject { get; set; }

        /// <summary>
        /// MES通讯Excel日志保存路径
        /// </summary>
        public string MESKeepRecordsFile { get; set; }

        public string EffectiveYield { get; set; }
    }
    /// <summary>
    /// Tibco服务连接类
    /// </summary>
    public class TibcoConfig
    {
        /// <summary>
        /// 服务
        /// </summary>
        public string Service { get; set; }
        /// <summary>
        /// 网络
        /// </summary>
        public string NetWork { get; set; }

        /// <summary>
        /// 守护进程1(Tcp协议:IP地址:端口)
        /// </summary>
        public string Daemon1 { get; set; }
        /// <summary>
        /// 备用守护进程2(Tcp协议:IP地址:端口)
        /// </summary>
        public string Daemon2 { get; set; }
        /// <summary>
        /// 备用守护进程3(Tcp协议:IP地址:端口)
        /// </summary>
        public string Daemon3 { get; set; }
        /// <summary>
        /// 备用守护进程4(Tcp协议:IP地址:端口)
        /// </summary>
        public string Daemon4 { get; set; }
        /// <summary>
        /// 备用守护进程5(Tcp协议:IP地址:端口)
        /// </summary>
        public string Daemon5 { get; set; }
        /// <summary>
        /// 备用守护进程6(Tcp协议:IP地址:端口)
        /// </summary>
        public string Daemon6 { get; set; }
        

    }
    /// <summary>
    /// Excel日志类
    /// </summary>
    public class RecordsFile
    {
        /// <summary>
        /// MES上传时间
        /// </summary>
        public string MesUploadTime { get; set; }
        /// <summary>
        /// MES上传结果
        /// </summary>
        public string MesUploadResult { get; set; }

        /// <summary>
        /// SendSubject
        /// </summary>
        public string SendSubject { get; set; }
        /// <summary>
        /// MESSAGENAME
        /// </summary>
        public string MESSAGENAME { get; set; }
        /// <summary>
        /// SHOPNAME
        /// </summary>
        public string SHOPNAME { set; get; }
        /// <summary>
        /// TRANSACTIONID
        /// </summary>
        public string TRANSACTIONID { get; set; }
        /// <summary>
        /// ORIGINALSOURCESUBJECTNAME
        /// </summary>
        public string ORIGINALSOURCESUBJECTNAME { get; set; }
        /// <summary>
        /// SOURCESUBJECTNAME
        /// </summary>
        public string SOURCESUBJECTNAME { get; set; }
        /// <summary>
        /// TARGETSUBJECTNAME
        /// </summary>
        public string TARGETSUBJECTNAME { get; set; }
        /// <summary>
        /// EVENTUSER
        /// </summary>
        public string EVENTUSER { get; set; }
        /// <summary>
        /// MACHINENAME
        /// </summary>
        public string MACHINENAME { get; set; }
        /// <summary>
        /// PRODUCTNAME
        /// </summary>
        public string PRODUCTNAME { get; set; }
        /// <summary>
        /// BLU
        /// </summary>
        public string BLU { get; set; }
        /// <summary>
        /// OUTIINE
        /// </summary>
        public string OUTIINE { get; set; }
        /// <summary>
        /// RETURNCODE
        /// </summary>
        public string RETURNCODE { get; set; }
    }
}
